package com.hlkj.pay.app.merchant.ext.impl.easypay.dto.access;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.io.IOException;
/**
 * 经营形态
 * @author HlpayTeam
 * @date 2024/11/27 9:31
 */
public enum BusinForm {
	THE_00, THE_01, THE_02;
	
	public String toValue() {
		switch (this) {
		case THE_00: return "00";
		case THE_01: return "01";
		case THE_02: return "02";
		}
		return null;
	}
	
	public static BusinForm forValue(String value) throws IOException {
		if (value.equals("00")) return THE_00;
		if (value.equals("01")) return THE_01;
		if (value.equals("02")) return THE_02;
		throw new IOException("Cannot deserialize BusinForm");
	}
}
